package org.huangrui.javaee.controller;

import cn.hutool.core.util.IdUtil;
import jakarta.annotation.Resource;
import org.huangrui.javaee.service.PayService;
import org.springframework.boot.SpringBootVersion;
import org.springframework.core.SpringVersion;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hr
 * @Create 2025-11-03 23:37
 **/
@RestController
public class T04PayAopReviewController {
    @Resource
    private PayService payService;

    @GetMapping(value = "/pay/aop")
    public String pay() {
        System.out.println("SpringVersion: " + SpringVersion.getVersion() + "\t" + "SpringBootVersion: " + SpringBootVersion.getVersion());

        payService.pay();

        return IdUtil.simpleUUID();
    }
}
